import 'package:flutter/material.dart';

class Cart with ChangeNotifier{
  int _count = 1;

  List _cartList=[]; //
 // int _cartNum = 0;

  int get carNum =>this._cartList.length;
  List get cartList=>this._cartList;

  addList(value){
    this._cartList.add(value);
    notifyListeners();
  }

  deleteData(value){
    this._cartList.remove(value);
    notifyListeners();

  }


}